import request from '@/utils/request'

// 查询坞修单列表
export function listOrder(params, data) {
  return request({
    url: '/system/dockOrder/selectShcwDockOrderListSys',
    method: 'post',
    params,
    data
  })
}

// 回显坞修单
export function dockOrderDetail(id) {
  return request({
    url: `/system/dockOrder/${id}`,
    method: 'get',
  })
}

// 查询坞修单详细
export function getOrder(id) {
  return request({
    url: '/system/order/' + id,
    method: 'get'
  })
}

// 新增坞修单
export function addOrder(data) {
  return request({
    url: '/system/order',
    method: 'post',
    data: data
  })
}

// 修改坞修单
export function updateOrder(data) {
  return request({
    url: '/system/order',
    method: 'put',
    data: data
  })
}

// 删除坞修单
export function delOrder(id) {
  return request({
    url: '/system/order/' + id,
    method: 'delete'
  })
}
